package org.misalen.web.database.model.mysql.pro;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.Enumeration;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 终端版本
 * 
 * @author guochao
 *
 */
@Entity
@Table(name = "ProClientVersion")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProClientVersion extends BaseSqlModel {

	@Enumeration("pro-client-type")
	@ModelComment("终端类型（固定值）")
	@Column(name = "clientType")
	private String clientType;

	@ModelComment("是否必须升级")
	@Column(name = "mustUpdate")
	private String mustUpdate;

	@ModelComment("升级内容")
	@Column(name = "alertMessage")
	private String alertMessage;

	@ModelComment("下载地址")
	@Column(name = "downloadUrl")
	private String downloadUrl;

	@ModelComment("版本号（终端显示用）")
	@Column(name = "version")
	private String version;

	@ModelComment("版本号（对比是否升级用）")
	@Column(name = "versionCode")
	private Integer versionCode;

	public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}

	public String getMustUpdate() {
		return mustUpdate;
	}

	public void setMustUpdate(String mustUpdate) {
		this.mustUpdate = mustUpdate;
	}

	public String getAlertMessage() {
		return alertMessage;
	}

	public void setAlertMessage(String alertMessage) {
		this.alertMessage = alertMessage;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Integer getVersionCode() {
		return versionCode;
	}

	public void setVersionCode(Integer versionCode) {
		this.versionCode = versionCode;
	}

}
